package com.banksoft.cps.service;

import com.banksoft.cps.bean.AdminUser;
import com.banksoft.cps.bean.Police;
import com.banksoft.cps.bean.common.ServiceException;
import com.banksoft.cps.bean.query.PoliceQuery;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/11/12.
 */
public interface PoliceService extends UserService{

    List<Police> list(PoliceQuery query);

    long count(PoliceQuery query);

    Police find(String id);

    void insert(Police bean);

    void update(Police bean);

    void save(Police bean);

    void setAccountAndPassword(Police bean);

    Police login(String account, String password)throws ServiceException;

    void delete(String[] ids);
}
